import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;

public abstract class TwitterButtonController extends JButton implements MouseListener {
	
	public ImageIcon defaultImage;
	public ImageIcon rolloverImage;
	public String defaultImagePath;
	public String rolloverImagePath;
	
	public TwitterButtonController(String defaultImagePath, String rolloverImagePath){
		super(new ImageIcon(defaultImagePath));
		this.defaultImagePath = defaultImagePath;
		this.rolloverImagePath = rolloverImagePath;
	
		//In order for only the icon to appear, setContentAreaFilled(false)
		this.setContentAreaFilled(false);
		
		this.setBorderPainted(false);
		initialize();
		
	}
	
	public void initialize() {
		this.defaultImage = new ImageIcon(this.defaultImagePath);
		this.rolloverImage = new ImageIcon(this.rolloverImagePath);
		this.setRolloverEnabled(true);
		this.setRolloverIcon(this.rolloverImage);
		this.addMouseListener(this);
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}
}
